<?php
/*
Template Name: Archives/Blog
*/
?>
<?php get_header(); ?>

<div id="content" class="page page-archive">
	<h2>Archives</h2>
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=10'.'&paged='.$paged);
?>
<?php if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); //a heavily modified loop ?>
<?php global $more; $more = 0; ?>

    <div class="post clearfix">
    	<?php image_attachment('feature-300x200', 300, 200); ?>
	    <h3 class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
	    <div class="meta">By <?php the_author_posts_link(); ?> &bull; on <?php the_time('F j, Y') ?></div>
	    <p><?php prox_content_limit(350,''); ?></p>
	    <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> &bull; <a href="<?php the_permalink(); ?>">Read this story &raquo;</a></p>
    </div>

    <?php endwhile; //end one post ?>
    
    <!-- Previous/Next page navigation -->
    <div class="page-nav">
	    <div class="nav-previous"><?php previous_posts_link(__('&larr; Previous Page')) ?></div>
	    <div class="nav-next"><?php next_posts_link(__('Next Page &rarr;')); ?></div>
    </div>   
                
	<?php else : //do not delete ?>

    <h3><?php _e("Page Not Found"); ?></h3>
    <p><?php _e("We're sorry, but the page you are looking for isn't here."); ?></p>
    <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar"); ?></p>

	<?php endif; $wp_query = null; $wp_query = $temp;?>
		
</div><!--end #content-->

<!--include sidebar-->
<?php get_sidebar(); ?>

<!--include footer-->
<?php get_footer(); ?>